<!--
  This file is a part of the open-eBackup project.
  This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
  If a copy of the MPL was not distributed with this file, You can obtain one at
  http://mozilla.org/MPL/2.0/.
  
  Copyright (c) [2024] Huawei Technologies Co.,Ltd.
  
  THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
  EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
  MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
  -->


<!DOCTYPE html
  PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en-us" xml:lang="en-us">
<head>
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
   
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="DC.Type" content="topic">
<meta name="DC.Title" content="Failed to Detach the System Disk During System Disk Restoration for OpenStack">
<meta name="product" content="">
<meta name="DC.Relation" scheme="URI" content="en-us_topic_0000002164656978.html">
<meta name="prodname" content="">
<meta name="version" content="">
<meta name="brand" content="">
<meta name="DC.Publisher" content="20250306">
<meta name="prodname" content="csbs">
<meta name="documenttype" content="usermanual">
<meta name="DC.Format" content="XHTML">
<meta name="DC.Identifier" content="EN-US_TOPIC_0000002164816786">
<meta name="DC.Language" content="en-us">
<link rel="stylesheet" type="text/css" href="public_sys-resources/commonltr.css">
<title>Failed to Detach the System Disk During System Disk Restoration for OpenStack</title>
</head>
<body style="clear:both; padding-left:10px; padding-top:5px; padding-right:5px; padding-bottom:5px"><a name="EN-US_TOPIC_0000002164816786"></a><a name="EN-US_TOPIC_0000002164816786"></a>

<h1 class="topictitle1">Failed to Detach the System Disk During System Disk Restoration for OpenStack</h1>
<div><div class="section"><h4 class="sectiontitle">Symptom</h4><p>When the host where the client is installed is restoring an OpenStack cloud server, the job fails because the system disk fails to be unmounted.</p>
</div>
<div class="section"><h4 class="sectiontitle">Possible Causes</h4><p>The OpenStack community version does not support system disk detachment.</p>
</div>
<div class="section"><h4 class="sectiontitle">Troubleshooting</h4><ol><li><span>Log in to the active OpenStack node before performing the system disk restoration job.</span></li><li id="EN-US_TOPIC_0000002164816786__li2987331162919"><a name="EN-US_TOPIC_0000002164816786__li2987331162919"></a><a name="li2987331162919"></a><span>Run the following commands to log in to the Cinder database and change the mount point (<strong>/dev/vda</strong> by default) of the system volume to an unmounted device (for example, <em>/dev/vdz</em>).</span><p><pre class="screen">mysql</pre>
<pre class="screen">use cinder;</pre>
<pre class="screen">update volume_attachment set mountpoint=<em>'</em><em>/dev/vdz</em><em>'</em> where volume_id=<em>'</em><em>system_volume_id</em><em>'</em> and deleted=0;</pre>
<div class="note"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p><em>/dev/vdz</em> indicates the new mount point of the system volume and an unattached device is required. <em>system_volume_id</em> indicates the ID of the system volume.</p>
</div></div>
</p></li><li id="EN-US_TOPIC_0000002164816786__li1484831212304"><a name="EN-US_TOPIC_0000002164816786__li1484831212304"></a><a name="li1484831212304"></a><span>Run the following commands to log in to the Nova database and change <strong>device_name</strong> (the system volume is <strong>/dev/vda</strong> by default) and <strong>boot_index</strong> (the system volume is <strong>0</strong> by default) of the system volume.</span><p><pre class="screen">use nova;</pre>
<pre class="screen">update block_device_mapping set device_name=<em>'/dev/vdz'</em>,boot_index=1 where volume_id=<em>'system_volume_id'</em> and deleted=0;</pre>
<div class="note"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p><em>/dev/vdz</em> indicates the new mount point of the system volume and <em>system_volume_id</em> indicates the ID of the system volume.</p>
</div></div>
</p></li><li><span>Perform the restoration job.</span></li><li><span>After the restoration job is complete, log in to the Cinder and Nova databases again and change the parameter values modified in <a href="#EN-US_TOPIC_0000002164816786__li2987331162919">2</a> and <a href="#EN-US_TOPIC_0000002164816786__li1484831212304">3</a> to the original values.</span></li></ol>
<p></p>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="en-us_topic_0000002164656978.html">FAQs</a></div>
</div>
</div>

<div class="hrcopyright"><hr size="2"></div><div class="hwcopyright">Copyright &copy; Huawei Technologies Co., Ltd.</div></body>
</html>